/*!
\file ActionCommunicator.cpp
\brief Contains implementation of ActionCommunicator.
\ingroup Action
*/

#include"ActionCommunicator.h" 

ActionCommunicator::ActionCommunicator(){
	m_settings = new VisualizationSettings;
}

ActionCommunicator::~ActionCommunicator(){
	if( m_settings != 0 )
		delete m_settings;
}

void ActionCommunicator::addNode( QString nodeData ){
	emit nodeAdd(nodeData);
}

void ActionCommunicator::addEdge( QString edgeData ){
	emit edgeAdd(edgeData);
}

void ActionCommunicator::setNodeOption( int nodeID, QString option, QString value ){
	emit nodeSetOption(nodeID, option, value);
}

void ActionCommunicator::setEdgeOption( int edgeID, QString option, QString value ){
	emit edgeSetOption(edgeID, option, value);
}

void ActionCommunicator::removeNode( int nodeID ){
	emit nodeRemove( nodeID );
}

void ActionCommunicator::removeEdge( int edgeID ){
	emit edgeRemove( edgeID );
}

void ActionCommunicator::removeContainer( int containerID ){
	emit containerRemove( containerID );
}

void ActionCommunicator::nodeAccess( int nodeID ){
	emit accessNode(nodeID);
}

void ActionCommunicator::edgeAccess( int edgeID ){
	emit accessEdge(edgeID);
}

void ActionCommunicator::containerNewElement( int container, int id ){
	emit newContainerElement(container, id);
}

void ActionCommunicator::containerRemoveElement( int container, int id ){
	emit removeContainerElement(container, id);
}

void ActionCommunicator::containerSetNode( int container, int id, int nodeID, QString label ){
	emit setContainerNode(container, id, nodeID, label);
}

void ActionCommunicator::containerSetEdge( int container, int id, int from, int to, QString label ){
	emit setContainerEdge(container, id, from, to, label);
}

void ActionCommunicator::containerSetData( int container, int id, QString data ){
	emit setContainerData(container, id, data);
}

void ActionCommunicator::comment( QString comment ){
	emit logComment( comment );
}
